﻿using Glorysoft.EAP.Core.Enums;
using System;
using System.Windows.Media;

namespace Glorysoft.EAP.EAPClient.Model
{
    public class InstantMsg
    {
        public string FColor
        {
            get
            {
                return FrontColor.ToString();
            }
        }
        public Color FrontColor { get; set; }
        public DateTime CurTime { get; set; }
        public MessageOrigin Title { get; set; }
        public string Detail { get; set; }
        public override string ToString()
        {
            return string.Format("{0} {1}", CurTime.ToLocalTime().Month + "/" + CurTime.ToLocalTime().Day + " " + CurTime.ToLocalTime().ToLongTimeString(), Detail);
        }
    }
}
